package org.hongqi.common.senpec.sys.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hongqi.common.senpec.base.sevlet.BaseVO;
import org.hongqi.common.senpec.sys.department.Department;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVO extends BaseVO {
    private String name;
    private String username;
    private String email;
    private String idCard;
    private String jobno;
    private String phone;
    private String gender = "空";
    private Long department;
    private Department departmentObj;//员工部门对应的实体类
    private String headImageUuid;//头像存入服务器时使用的关键字
    private String headImageUrl;//头像地址
    private Boolean includeAfter = true;//根据部门查询员工时，是否包含下级部门
    private Collection<? extends GrantedAuthority> authorities;
}
